package cn.edu.njpi;

import javafx.application.Application;
import javafx.stage.Modality;
import javafx.stage.Stage;

/**
 * @author 朱宗辉
 * @version V1.0
 * @Package cn.edu.njpi
 * @date 2022/5/10 8:13 PM
 */
public class Main3 extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        Stage s1 = new Stage();
        s1.setTitle("s1");
        s1.show();

        Stage s2 = new Stage();
        s2.initModality(Modality.APPLICATION_MODAL);
        s2.setTitle("s2");
        s2.show();

        Stage s3 = new Stage();
        s3.initModality(Modality.WINDOW_MODAL);
        s3.setTitle("s3");
        s3.show();
    }
}
